package com.example.cloud.model.basic;

import com.example.cloud.model.common.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * Created by wangtao on 2018/6/5.
 * 病房明细(家庭)
 */
@Entity(name = "basic_home_discount_project")
@Data
@EqualsAndHashCode(callSuper = false)
public class HomeDiscountProject extends CommonModel {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    // 家庭病房主键
    @Column(name = "home_id")
    private Long homeId;
    // 项目类型
    @Column(name = "project_type_id")
    private Long projectTypeId;
    @Column(name = "project_type_name")
    private String projectTypeName;
    // 折扣率
    @Column(name = "discount",columnDefinition = "DOUBLE(10,2) DEFAULT '0.00'")
    private Double discount;
}
